﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using HRM.BusinessLogic;

namespace HRM
{
    public partial class frmDSKhongThamGiaBH : FormBase
    {
        public frmDSKhongThamGiaBH()
        {
            InitializeComponent();
        }

        public override void Show_Form()
        {
            this.Show();
        }

        protected override void Init_Control()
        {
            Init_Grid();
            //
            Bind_Data();
        }

        private void Bind_Data()
        {
            DataTable dt = Detail_Controller.Instance().DSKhongThamGiaBH(Program.strBranchCode);
            dtgData.DataSource = dt;
            //
            dtgData.ReadOnly = true;
        }

        DataGridHandle m_GridHandle;
        protected void Init_Grid()
        {
            List<DataGridViewColumn> arrColumn = new List<DataGridViewColumn>();
            arrColumn.Add(FormGlobals.Grid_NewColumn<DataGridViewTextBoxColumn>("Số sổ BH", "Employee_SiBookNo", 80));
            arrColumn.Add(FormGlobals.Grid_NewColumn<DataGridViewTextBoxColumn>("Họ và tên", "Employee_FullName", 120));
            arrColumn.Add(FormGlobals.Grid_NewColumn<DataGridViewTextBoxColumn>("PA", "Detail_InsTypeCode", 40));

            m_GridHandle = FormGlobals.Grid_Init(dtgData, arrColumn, "", 1);
            //
        }
    }
}
